package jwj8508.swing.jdbc;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JFrame;

public class J26_SungJukActionListener implements ActionListener {

	private JFrame p;
	public J26_SungJukActionListener(JFrame p) {
		this.p = p;
	}
	@Override
	public void actionPerformed(ActionEvent e) {
		switch (e.getActionCommand()) {
		case "new":
			new J26_SungJukNewData(p);
			break;
		case "list":
			new J26_SungJukShowList(p);
			break;
		case "exit":
			System.exit(0);
			break;
		case "about":
			new J26_SungJukAboutDialog(p);			
			break;
		}
		
	}

}
